<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" aria-labelledby="myModalLabel"
    id="projectAdd" *ngIf="initService.init">
    <div class="modal-dialog modal-lg modal-dialog-centered">
        <div class="modal-content">
            <form #addForm="ngForm" (ngSubmit)="_onSubmit(addForm.value)">
                <!-- 模态框头部 -->
                <div class="modal-header">
                    <h4 class="modal-title" id="myModalLabel">新增项目</h4>
                    <button type="button" class="close" data-dismiss="modal" (click)="_showAddChildInfo()">&times;</button>
                </div>
                <!-- 模态框主体 -->
                <div class="modal-body">
                    <div class="container">

                        <div class="input_div">
                            <label class="input_title">项目名称：</label>
                            <input class="input_inputStyle" required name="projectName" #projectName="ngModel" ngModel placeholder="请输入项目名称">
                            <span class="keyword_error" *ngIf="projectName.invalid && (projectName.touched)">项目名称不能为空</span>
                        </div>
                        <div class="input_div">
                            <label class="input_title">是否启用：</label>
                            <select class="input_inputStyle" name="status" #status="ngModel" ngModel="0">
                                <option value="0">启用</option>
                                <option value="-1">禁用</option>
                            </select>
                        </div>
                        <div class="input_div">
                            <div class="textarea_title">描述：</div>
                            <textarea class="textarea_textareaStyle" name="description" #description="ngModel" ngModel></textarea>
                        </div>
                    </div>
                </div>
                <!-- 模态框底部 -->
                <div class="modal-footer" style="width:100%;">
                    <button type="submit" class="btn btn-primary" data-toggle="modal" [disabled]="addForm.invalid">确定</button>
                    <button type="button" class="btn btn-default" data-dismiss="modal" (click)="initService._init();_showAddChildInfo()">取消</button>
                </div>
            </form>
        </div>
    </div>
</div>